package com.hxs.hxsserver.mapper.relay;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hxs.hxsserver.domain.dto.device.DeviceStatusQueryDTO;
import com.hxs.hxsserver.domain.entity.relay.RelayLog;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author liuchuan
 * @create 2024/10/15
 */
@Repository
public interface RelayLogMapper  extends BaseMapper<RelayLog> {
    int updateByPrimaryKeySelective(RelayLog record);

    int updateByPrimaryKey(RelayLog record);

    IPage<RelayLog> getRelayLog(@Param("page") Page<RelayLog> page, @Param("deviceListQueryDTO") DeviceStatusQueryDTO deviceListQueryDTO);
}